Produced by Araxis Merge on 2023-07-12 04:42:37 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.5/Theme Files/Porto Theme/app/code/Mageplaza/LayeredNavigation/Setup | InstallData.php | 2022-12-08 01:34:28 +0000 |
| 2 | 2023-07-12 04:42:37 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 79 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | |||||
| 2 | /** | |||||
| 3 | * Mageplaza | |||||
| 4 | * | |||||
| 5 | * NOTICE OF LICENSE | |||||
| 6 | * | |||||
| 7 | * This source file is subject to the Mageplaza.com license that is | |||||
| 8 | * available through the world-wide-web at this URL: | |||||
| 9 | * https://www.mageplaza.com/LICENSE.txt | |||||
| 10 | * | |||||
| 11 | * DISCLAIMER | |||||
| 12 | * | |||||
| 13 | * Do not edit or add to this file if you wish to upgrade this extension to newer | |||||
| 14 | * version in the future. | |||||
| 15 | * | |||||
| 16 | * @category Mageplaza | |||||
| 17 | * @package Mageplaza_LayeredNavigation | |||||
| 18 | * @copyright Copyright (c) Mageplaza (http://www.mageplaza.com/) | |||||
| 19 | * @license https://www.mageplaza.com/LICENSE.txt | |||||
| 20 | */ | |||||
| 21 | ||||||
| 22 | namespace Mageplaza\LayeredNavigation\Setup; | |||||
| 23 | ||||||
| 24 | use Magento\Catalog\Model\Category; | |||||
| 25 | use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface; | |||||
| 26 | use Magento\Eav\Setup\EavSetupFactory; | |||||
| 27 | use Magento\Framework\Setup\InstallDataInterface; | |||||
| 28 | use Magento\Framework\Setup\ModuleContextInterface; | |||||
| 29 | use Magento\Framework\Setup\ModuleDataSetupInterface; | |||||
| 30 | use Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes; | |||||
| 31 | use Mageplaza\LayeredNavigation\Model\Category\Attribute\Source\Attributes as SourceAttributes; | |||||
| 32 | ||||||
| 33 | /** | |||||
| 34 | * Class InstallData | |||||
| 35 | * @package Mageplaza\LayeredNavigation\Setup | |||||
| 36 | */ | |||||
| 37 | class InstallData implements InstallDataInterface | |||||
| 38 | { | |||||
| 39 | ||||||
| 40 | /** | |||||
| 41 | * @var EavSetupFactory | |||||
| 42 | */ | |||||
| 43 | protected $eavSetupFactory; | |||||
| 44 | ||||||
| 45 | /** | |||||
| 46 | * InstallData constructor. | |||||
| 47 | * | |||||
| 48 | * @param EavSetupFactory $eavSetupFactory | |||||
| 49 | */ | |||||
| 50 | public function __construct( | |||||
| 51 | EavSetupFactory $eavSetupFactory | |||||
| 52 | ) { | |||||
| 53 | $this->eavSetupFactory = $eavSetupFactory; | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | /** | |||||
| 57 | * @param ModuleDataSetupInterface $setup | |||||
| 58 | * @param ModuleContextInterface $context | |||||
| 59 | */ | |||||
| 60 | public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) | |||||
| 61 | { | |||||
| 62 | $setup->startSetup(); | |||||
| 63 | $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); | |||||
| 64 | ||||||
| 65 | $eavSetup->addAttribute(Category::ENTITY, 'mp_ln_hide_attribute_ids', [ | |||||
| 66 | 'type' => 'text', | |||||
| 67 | 'label' => 'Hide Filter Attributes on Layered Navigation', | |||||
| 68 | 'input' => 'multiselect', | |||||
| 69 | 'source' => SourceAttributes::class, | |||||
| 70 | 'backend' => Attributes::class, | |||||
| 71 | 'required' => false, | |||||
| 72 | 'sort_order' => 100, | |||||
| 73 | 'global' => ScopedAttributeInterface::SCOPE_STORE, | |||||
| 74 | 'group' => 'Display Settings', | |||||
| 75 | ]); | |||||
| 76 | ||||||
| 77 | $setup->endSetup(); | |||||
| 78 | } | |||||
| 79 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.